<template>
  <!--通用echart-->
  <componentBox :id="id" :ref="id" :option="config.location">
    <my_chart :ref="'chart'+id" :id="'chart'+id" style="height:100%;width: 100%"
              :option="option.echartOption"></my_chart>
  </componentBox>
</template>

<script>
  export default {
    name: "screen_chart_general",
    components: {
      'componentBox': () => import('@/components/screen/componentBox.vue'),
      'my_chart': () => import('@/components/myChart/index.vue'),
    },
    props: {
      id: String,
      config: Object,
    },
    data() {
      return {
        option: {},
      }
    },
    created() {
      this.option = this.config.option;
    }
  }
</script>

<style scoped>
</style>
